home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / cd.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.9 KB  |  69 lines

  1. CD
  2.  
  3. Sets or displays the current directory.
  4.  
  5. Format
  6.  
  7. CD [<dir | pattern>]
  8.  
  9. Template
  10.  
  11. DIR
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. CD with no arguments displays the name of the current directory. When a valid
  18. directory name is given, CD makes the named directory the current directory.
  19.  
  20. You must specify a complete path to the directory since CD does not search
  21. through the disk for it. If CD cannot find the specified directory in the
  22. current directory or in the given path, a Can't find <directory> message is
  23. displayed.
  24.  
  25. To move up a level in the filing hierarchy to the parent directory of the
  26. current directory, enter CD followed by a space and a single slash (/). You
  27. can move to another directory in the parent at the same time by including its
  28. name after the slash. If the current directory is a root directory, CD / has
  29. no effect. Use multiple slashes with no spaces between them to refer to
  30. additional higher levels.
  31.  
  32. To move directly to the root directory of the current device, use CD followed
  33. by a space and a colon; for example, CD :
  34.  
  35. AmigaDOS supports an implied CD so that the CD command itself can often be
  36. left out. Enter the directory name, path, colon, or slashes at the prompt.
  37.  
  38. CD also supports pattern matching. When a directory matching the specified
  39. pattern is found, it becomes the current directory. If more than one
  40. directory matches the given pattern, an error message is displayed. You
  41. cannot use pattern matching with implied CD. For more information an pattern
  42. matching, see Chapter 3.
  43.  
  44. Example 1:
  45.  
  46. 1> CD DF1:Work
  47.  
  48. sets the current directory to the Work directory on the disk in drive DF1:.
  49.  
  50. Example 2:
  51.  
  52. 1> CD SYS:Com/Basic
  53.  
  54. makes the subdirectory Basic in the Com directory the current directory.
  55.  
  56. Example 3:
  57.  
  58. 1> //
  59.  
  60. using the implied CD, moves up two levels in the directory structure.
  61.  
  62. Example 4:
  63.  
  64. 1> CD SYS:Li#?
  65.  
  66. uses the #? pattern to match with the LIBS: directory.
  67.  
  68. For more examples using the CD command, see Chapter 8.
  69.